package com.lq.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luoqian
 * @version 1.0
 * @date 2022-03-15 21:33
 * @deprecated 用于测试的controller
 */
@RestController
@CrossOrigin
@Api(tags = {"测试的控制层"})
public class DemoController {

    @GetMapping("/demo")
    @ApiOperation(value = "a demo ==> return hello world", notes = "return hello world")
    public String demo() {
        return "hello world";
    }

}
